<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo $base_url?>style/img/favicon.ico">
<link rel="icon" href="<?php echo $base_url?>style/img/animated_favicon.gif" type="image/gif">
<script language="javascript" src="<?php echo $base_url?>style/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $base_url?>style/css/css_admin.css" />
</head>
<body>
	<script>
	function submitLogin_jQuery()
	{
		if ($("#txt_username").val()=="")
		{
			alert("Vui lòng nhập Tên đăng nhập");
			$("#txt_username").focus();
			return false;
		}
		if ($("#txt_password").val()=="")
		{
			alert("Vui lòng nhập Mật khẩu");
			$("#txt_password").focus();
			return false;
		}	
		$('#form_login').submit();
	}	
	</script>
  <div style="margin:auto;width:450px;">
  	<div style="text-align:center; margin-top:20px;font-weight:bold;">TRANG QUẢN LÝ - WEBSITE <?php echo $website_name;?></div>
    <form id="form_login" name="form_login" action="<?php echo $base_url.$base_page."admin_common/login"?>" method="post" onsubmit="return submitLogin_jQuery();">
    <div id="div_AdminLogin" class="width_346">
      <div class="box_top"><img src="<?php echo $img_url;?>style/img/blank.gif" alt="" class="box_top_left"><img src="<?php echo $img_url;?>style/img/blank.gif" alt="" class="box_top_right"></div>
      <div class="box_content">
        <div class="main_content">
          <ul>
          <?php
            //Thông báo đăng nhập không thành công.
            if ($msg != "")   
            {
          ?>      
            <li>
              <div align="center" class="error"><?php echo $msg;?></div>
            </li>
          <?php
            }
          ?>
            <li>
              <div class="left">Tên đăng nhập:</div>
              <div class="right">
                <input name="txt_username" id="txt_username" style="width: 220px;" value="" type="text">
              </div>
            </li>
            <li>
              <div class="left">Mật khẩu:</div>
              <div class="right">
                <input name="txt_password" id="txt_password" style="width: 220px;" value="" type="password">
              </div>
            </li>
            <li>
              <div class="left">&nbsp;</div>
              <div class="right">
                <input name="" value="Đăng nhập" class="btn_Login" type="submit" />
                <input type="hidden" id="h_Cur_Page" name="h_Cur_Page" value="<?php echo $sCur_Page;?>" />
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div class="box_bottom"><img src="<?php echo $img_url;?>style/img/blank.gif" alt="" class="box_bottom_left"><img src="<?php echo $img_url;?>style/img/blank.gif" alt="" class="box_bottom_right"></div>
    </div>
		</form>     
    <div style="clear:both;"></div>
  </div>
</body>
</html>